package com.zb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by lidedong on 2017/9/11 0011.
 */
@Controller
@RequestMapping("/")
public class IndexController {
    @RequestMapping(value = "goIndex", method = RequestMethod.GET)
    public ModelAndView goIndex() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("forward:" + "index.jsp");
        return modelAndView;
    }
}
